import {get, post} from "@/config/ApiUtil";

const checkCodeUrl: string = '/account/check/code';
const loginUrl: string = '/account/login';

/**
 * checkCodeApi - 获取验证码
 * @author lsc
 * @date 2024/3/30 13:39
 */
export function checkCodeApi() {
    return get(checkCodeUrl, null);
}

/**
 * loginApi - 登录
 * @author lsc
 * @date 2024/3/31 11:04
 */
export function loginApi(data: any) {
    return post(loginUrl, data);
}
